import request from '@/utils/request'

// 查询猜谜活动配置列表
export function listGuessActivity(query) {
  return request({
    url: '/business/guessActivity/list',
    method: 'get',
    params: query
  })
}

// 查询猜谜活动配置详细
export function getGuessActivity(id) {
  return request({
    url: '/business/guessActivity/' + id,
    method: 'get'
  })
}

// 新增猜谜活动配置
export function addGuessActivity(data) {
  return request({
    url: '/business/guessActivity',
    method: 'post',
    data: data
  })
}

// 修改猜谜活动配置
export function updateGuessActivity(data) {
  return request({
    url: '/business/guessActivity',
    method: 'put',
    data: data
  })
}

// 删除猜谜活动配置
export function delGuessActivity(id) {
  return request({
    url: '/business/guessActivity/' + id,
    method: 'delete'
  })
}
